<template>
  <div class="border">
    <p>age: {{ age}}</p>
    <div style="height:24px"></div>
    <p>childCom2: {{ $attrs }}</p>
  </div>
</template>
<script>
export default {
  inheritAttrs: false,
  props: {
    age: String
  }
};
</script>
<style scoped>
p {
  font-size: 16px;
  color: blueviolet;
}
</style>